package cn.leo.dynamic_multi_datasource.mapper;

import cn.leo.dynamic_multi_datasource.entity.Dept;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * mapper文件
 * @author leo.z.l
 * @create 2019-08-26  15:14
 */
@Mapper
public interface DeptFirstDao {

    /**
     * 增加
     * @param dept
     * @return
     */
    public boolean addDept(Dept dept);

    /**
     * 查询
     * @param id
     * @return
     */
    public Dept findById(Long id);

    /**
     * 查询所有
     * @return
     */
    public List<Dept> findAll();
}
